package com.lkm.app_ui.m.Imple.usb_camera;

import android.hardware.usb.UsbDevice;
import android.util.Log;

import com.lkm.app_ui.AppConst;
import com.lkm.app_ui.m.camera.CameraModule;
import com.lkm.javatool.CollectionHelp;
import com.lkm.javatool.IOHelp;
import com.lkm.javatool.lang.RunnablePR;
import com.lkm.usb_com.UsbModule;

import java.io.File;
import java.io.FileInputStream;
import java.util.Collection;
import java.util.List;



public class UsbCameraModuleImple implements CameraModule {




//    private com.lkm.usbcamera.CameraModule slientCamera;




//    public UsbCameraModuleImple(com.lkm.usbcamera.CameraModule slientCamera) {





//        List<UsbDevice> usbDevices = UsbModule.getInstance().getDevice(0x18ec, 0x3399);

//        slientCamera.start(deviceName = usbDevices.get(0).getDeviceName());



















//                                bc.run(IOHelp.readFull(new FileInputStream(file),(int) file.length()));

























    @Override
    public boolean open() {
        return false;
    }

    @Override
    public boolean isOpen() {
        return false;
    }

    @Override
    public int tackPicture(RunnablePR<byte[], Void> bc) {
        return 1;
    }

    @Override
    public void close() {

    }
}
